package com.sgchen.demo.filter;

import com.sgchen.security.interceptor.EncryptResponseBodyAdvice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * 结果相应数据解密+脱敏
 *
 * @author sgchen
 * @date 2025/6/4 9:05
 */
//@ControllerAdvice
@Slf4j
@Order(Ordered.LOWEST_PRECEDENCE)
public class CustomEncryptResponseBodyAdvice extends EncryptResponseBodyAdvice {

    @Override
    protected boolean isNeedDesensitized() {
        return true;
    }
}



